{extend name="public/base" /}

{block name="title"}<title>{:lang('list')}</title>{/block}

{block name="pjax_container"}
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border" style="height:51px;" >
                    {include file="public/search" /}
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th width="36"><input type="checkbox" class="icheck checkbox-toggle"></th>
                            <th>ID</th>
                            <th>UID</th>
                            <th>质押钱包</th>
                            <th>质押数量<br/>({$all_num})</th>
                            <th>实际质押数量<br/>({$all_real_num})</th>
                            <th>交易哈希</th>
                            <th>提取时间</th>
                            <th>状态</th>
                            <th width="204">{:lang('action')}</th>
                        </tr>
                        {volist name="dataList" id="vo"}
                        <tr>
                            <td><input type="checkbox" name="id[]" value="{$vo.id}" class="icheck"></td>
                            <td>{$vo.id}</td>
                            <td>{$vo.uid}</td>
                            <td>{$vo.from_address}</td>
                            <td>{$vo.money}</td>
                            <td>{$vo.real_money}</td>
                            <td>{$vo.trade_hash}</td>
                            <td>{$vo.c_time|time_turn}</td>
                            <td>
                                {if $vo.status == 1}
                                    <span class="editimg fa fa-check-circle text-green">成功</span>
                                {elseif $vo.status == 2}
                                    <span class="editimg fa fa-check-circle text-red">失败</span>
                                {else}
                                    <span class="editimg fa fa-check-circle ">处理中</span>
                                {/if}
                            </td>
                            <td>
                                {:auth_action(CONTROLLER_NAME.'/authGroup', 'a', lang('auth_group'), ['id' => $vo.id], 'success')} 
                                {include file="public/list_action" /}
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                    {$dataList->render()|raw}
                </div>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript">
$(function(){
    index_list_init();
})
</script>
{/block}